Valitron\Validator D

Total Complexity 276
Dependencies 2
Dependents 3
Total lines 1,535
Lines of code 715
Logical lines of code 407
Comment lines 583
Methods 71
Properties 12

Methods 71

Method Rating Maintainability Complexity Lines of code
validateCreditCard()
C
37 24 73
validate()
B
43 22 43
validateRequiredWithout()
A
50 16 27
validateRequiredWith()
A
50 16 27
getPart()
A
47 12 36
rule()
A
46 10 36
validateContains()
A
52 8 26
validateInstanceOf()
A
57 8 17
checkAndSetLabel()
A
55 8 17
error()
S
53 7 23
validateArrayHasKeys()
S
58 6 15
validateRequired()
S
60 6 12
validateBetween()
S
62 6 10
rules()
S
59 5 15
validateSubset()
S
60 5 13
__construct()
S
59 5 12
validateUrlActive()
S
63 5 9
mapFieldRules()
S
58 3 16
validateEmailDNS()
S
62 4 10
validateLength()
S
67 4 7
hasRule()
S
64 4 10
getUniqueRuleName()
S
61 3 12
validateIn()
S
62 3 11
validateListContains()
S
62 3 11
validateDateAfter()
S
70 3 5
errors()
S
70 3 6
validateDateBefore()
S
70 3 5
langDir()
S
69 3 6
lang()
S
71 3 6
validateUrl()
S
66 3 8
validateMin()
S
64 3 9
validateInteger()
S
68 3 6
validateLengthBetween()
S
73 3 4
stringLength()
S
67 3 8
validateMax()
S
64 3 9
validateEquals()
S
73 2 4
withData()
S
69 2 6
validateLengthMin()
S
74 2 4
assertRuleCallback()
S
69 2 7
validateLengthMax()
S
74 2 4
validateAscii()
S
69 2 6
validateDifferent()
S
73 2 4
addRule()
S
67 2 8
validateContainsUnique()
S
70 2 6
validateDateFormat()
S
73 2 4
validateDate()
S
65 2 9
validateSlug()
S
71 2 6
hasValidator()
S
71 2 5
validateAccepted()
S
73 2 4
getRules()
S
79 1 3
addInstanceRule()
S
72 1 5
labels()
S
75 1 4
label()
S
71 1 5
getRuleMessages()
S
79 1 3
validateRegex()
S
78 1 3
stopOnFirstFail()
S
80 1 3
reset()
S
72 1 6
message()
S
74 1 4
data()
S
82 1 3
validateOptional()
S
82 1 3
validateBoolean()
S
80 1 3
validateAlphaNum()
S
79 1 3
validateAlpha()
S
79 1 3
validateEmail()
S
78 1 3
validateIpv6()
S
78 1 3
validateIpv4()
S
78 1 3
validateIp()
S
78 1 3
validateNotIn()
S
78 1 3
validateNumeric()
S
80 1 3
validateArray()
S
80 1 3
mapFieldsRules()
S
70 1 6